package com.dan.service.impl;

import com.dan.pojo.Category;
import com.dan.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author danqihao
 */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryService categoryService;

    @Override
    public void add(Category category) {
        categoryService.add(category);
    }

    @Override
    public List<Category> findAll(Integer userId) {
        return categoryService.findAll(userId);
    }

    @Override
    public Category findById(Integer id) {
        return categoryService.findById(id);
    }

    @Override
    public void update(Category category) {
        categoryService.update(category);
    }

    @Override
    public void delete(Integer id) {
        categoryService.delete(id);
    }
}
